#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
@File        :   parse_qcc_industry.py    
@Contact     :   18574945291@163.com
@License     :   (C)Copyright 2018-20xx, Liugroup-NLPR-CASIA
@Modify Time :   2020/12/10 10:48
@Author      :   code_wizard 1978992154@qq.com
"""

import configparser
import json

CONFIG_PATH = "./local_config.ini"  # 配置文件的路径
MYSQL_ENV = "mysql-dev"  # mysql 使用环境 对应ini配置文件

parser = configparser.ConfigParser()
parser.read(CONFIG_PATH)
section = parser.sections()
options = parser.options(MYSQL_ENV)
print(options)
print(parser.get(MYSQL_ENV,"host"))
# with open("./industry.json", "r", encoding="utf-8") as load_f:
#     load_dict = json.load(load_f)
#     # json_obj = json.dumps(load_dict, ensure_ascii=False)
#     # print(json_obj)
#     # print(type(json_obj))
#     for i in load_dict["result"]["Result"]:
#         print(i)
